package com.manager.web.common;

import com.manager.base.BaseAction;
import com.manager.util.Log;
import com.opensymphony.xwork2.Action;

public class CommonAction extends BaseAction {
	/*
	 * 通用的跳转方法
	 */
	public String forward(){
		String url = request.getParameter("url");
		try{
			if(url != null){
				request.getRequestDispatcher(url).forward(request, response);
			}
		}catch(Exception e){
			e.printStackTrace();
		}
		return Action.NONE;
	}
	
	public String testMethod(){
		String name = request.getParameter("name");
		String password = request.getParameter("password");
		String sessionId = request.getSession().getId();
		
		Log.info("name: " + name + "---password: " + password + "---sessionId on server: " + sessionId);
		
		return Action.NONE;
	}
}
